<template>
  <div class="order">
    <div class="left">
      <router-link data-id="1" active-class="active" to="/index/order/nopaid">未下单</router-link>
      <router-link data-id="2" active-class="active" to="/index/order/havepaid">已下单</router-link>
    </div>
    <div class="right">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  name:'Order'
}
</script>

<style lang="less" scoped>
.order{
  width: 100%;
   .left{
    position: fixed;
    left: 20px;
    z-index: 1;
    a{
      margin-top: 20px;
      display: block;
      width: 70px;
      height: 70px;
      line-height: 70px;
      text-align: center;
      border-radius: 45px;
      background-color: #fff;
      box-sizing: border-box;
      box-shadow: 1px 4px 6px #ccc;
      text-decoration: none;
    }
    .active,a:hover{
      border: 1px solid red;
    }
  }
}
</style>